package cn.cnhis.online.mymodule.mybasenet;


import android.util.Log;

/**
 * 设置异常信息打进log
 */
public class ApiException extends RuntimeException {
    private static final String TAG = ApiException.class.getSimpleName();

    private int code;

    public ApiException(Throwable throwable, int code) {
        super(throwable);
        this.code = code;
    }

    public ApiException(String message) {
        super(new Throwable(message));
        Log.e(TAG, "ApiException:ApiException: "+message);

    }
}